package com.lenovo.vod.player.util;

import com.lenovo.vod.player.Constant;
import com.lenovo.vod.player.Engine;

import android.os.Handler;
import android.os.Message;

public class TimerTaskHandler extends Handler {	
	private Engine mEngine;
	
	public TimerTaskHandler(Engine engine)
	{
		mEngine = engine;
	}
	
	@Override
	public void handleMessage(Message msg) {
		switch (msg.what) {
		case Constant.MSG_UPDATE_PROGRESS:
			mEngine.updateProgress();
			break;
		case Constant.MSG_HIDE_CONTROLLER:
			mEngine.hideController();
			break;
		}
	}
}
